package com.lwp.mybatisplus.springbootmybatisplus.controller;

import com.lwp.mybatisplus.springbootmybatisplus.mapper.UserMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * TestController
 *
 * @author lanwenping
 * @version 1.0
 * @date 2020/5/27 23:52
 */
@RestController
public class TestController {

    @Autowired
    UserMapper userMapper;

    @GetMapping("/hi")
    public String hi(String name) {
        System.out.println(111);
        System.out.println(userMapper.selectList(null));
        return String.format("hi, %s", name);
    }
}
